package cn.edu.jsu.official.utils;

import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;

/**
 * @author Mo
 * @createTime 2022/5/19 17:12
 * @description
 */
public class DateUtil {
    public static Date dateAdd(Date date, Integer day) {
        Calendar calendar = new GregorianCalendar();
        calendar.setTime(date);
        calendar.add(Calendar.DATE, day);
        date = calendar.getTime();
        return date;
    }
}
